<div class="problemlist_item">
    <div class="header" id="ranklist_filter_bar">
        筛选
    </div>
    <div class="body" id="ranklist_filter" style="display: none; padding: 20px;">
        <form class="form form-inline" method="get" action="" id="ranklist_filter_form">
            <table class="table table-nobordered">
                <tr>
                    <td width="80">用户类型</td>
                    <td>
                        <a href="javascript:void(0)" class="filter-role label label-bordered{% if role == -1 %} label-primary{% else %} label-transparent{% endif %}">全部</a>&nbsp;&nbsp;
                        {% for r in roles %}
                        <a href="javascript:void(0)" class="filter-role label label-bordered{% if r.0 == role %} label-primary{% else %} label-transparent{% endif %}" dat-val="{{ r.0 }}">{{ r.1 }}</a>&nbsp;&nbsp;
                        {% endfor %}
                        <input type="hidden" id="ipt-filter-role" value="{{ role }}" name="role">
                    </td>
                </tr>
                <tr>
                    <td width="80">年级</td>
                    <td>
                        <a href="javascript:void(0)" class="filter-grade label label-bordered{% if grade == '' %} label-primary{% else %} label-transparent{% endif %}">全部</a>&nbsp;&nbsp;
                        {% for g in grades %}
                        <a href="javascript:void(0)" class="filter-grade label label-bordered{% if g == grade %} label-primary{% else %} label-transparent{% endif %}" dat-val="{{ g }}">{{ g }}级</a>&nbsp;&nbsp;
                        {% endfor %}
                        <input type="hidden" id="ipt-filter-grade" value="{{ grade }}" name="grade">
                    </td>
                </tr>
                <tr>
                    <td width="80">专业</td>
                    <td>
                        <a href="javascript:void(0)" class="filter-major label label-bordered{% if major == '' %} label-primary{% else %} label-transparent{% endif %}">全部</a>&nbsp;&nbsp;
                        {% for m in majors %}
                        <a href="javascript:void(0)" class="filter-major label label-bordered{% if m.id == major %} label-primary{% else %} label-transparent{% endif %}" dat-val="{{ m.id }}">({{ m.id }}){{ m.name }}</a>&nbsp;&nbsp;
                        {% endfor %}
                        <input type="hidden" id="ipt-filter-major" value="{{ major }}" name="major">
                    </td>
                </tr>
            </table>
            <hr>
            <input type="submit" class="btn btn-primary" value="执行筛选">
        </form>
    </div>
</div>
